#include "ndame.h"
Go to the source code of this file.
Functions | |
void | psolution (struct data *d1) |
psolution |
Definition in file psolution.c.
|
psolution This file prints the solutions on screen if singlestep is activated. You can change the queen ascii and the position in the file header "ndame.h".
Definition at line 21 of file psolution.c. References data::iblength, data::iboard, QUEEN, X_POS, and Y_POS. 00022 { 00023 int ik; 00024 int ii; 00025 00026 for(ii=0;ii<d1->iblength;ii++) 00027 { 00028 for(ik=0;ik<d1->iblength;ik++) 00029 { 00030 gotoxy(X_POS+ik,Y_POS+ii); 00031 if(d1->iboard[ii][ik]) 00032 { 00033 printf("%c",QUEEN); //prints solution on screen 00034 } 00035 } 00036 } 00037 }
|